<template>
  <div class="login-panel">
    <h2 class="title">登陆组件</h2>

    <el-tabs type="border-card" stretch>
      <el-tab-pane>
        <template #label>
          <span>
            <el-icon :size="14"><user-filled /></el-icon> 账号登陆
          </span>
        </template>
        <login-account></login-account>
      </el-tab-pane>
      <el-tab-pane>
        <template #label>
          <span>
            <el-icon :size="14"><iphone /></el-icon> 手机登陆
          </span>
        </template>
        <login-phone></login-phone>
      </el-tab-pane>
    </el-tabs>
    <div class="password-status">
      <el-checkbox checked>记住密码</el-checkbox>
      <el-link type="primary" :underline="false">忘记密码</el-link>
    </div>
    
    <el-button type="primary" class="immediately-login">立即登陆</el-button>
  </div>
</template>

<script setup>
import loginAccount from "./login-account.vue";
import loginPhone from "./login-phone.vue";
</script>

<style scoped>
.login-panel {
  width: 320px;
  margin-bottom: 200px;
}
.title {
  text-align: center;
}
.password-status {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
}
.immediately-login {
  width: 100%;
  margin-top: 10px;
}
.el-icon {
  vertical-align: middle;
}
</style>
